<?php
class Mailbox_information_to {

	private $all_inbox;
	private $new_inbox;
	private $send_inbox;

	public function __construct($all_inbox, $new_inbox, $send_inbox) {
		$this->all_inbox = $all_inbox;
		$this->new_inbox = $new_inbox;
		$this->send_inbox = $send_inbox;
	}
	
	public function get_all_inbox() {
		return $this->all_inbox;
	}
	
	public function get_new_inbox() {
		return $this->new_inbox;
	}
	
	public function get_send_inbox() {
		return $this->send_inbox;
	}
	

	public function equals($object) {
		if ((get_class($this) != get_class($object)) ||
				($object == null))				
			 return false;
		else {
			if (($this->all_inbox = $object->get_all_inbox()) &&
				($this->new_inbox = $object->get_new_inbox()) &&
				($this->send_inbox = $object->get_send_inbox()))
				return true;
			return false;
		}
	}
	
	public function to_string() {
		return 'all inbox: ' . $this->all_inbox . ' | ' . 
				'new inbox: ' . $this->new_inbox . ' | ' .
				'send inbox: ' . $this->send_inbox;
	}
}
?>